#pragma once

class TextureRes: public IResource
{
public:
	TextureRes(const std::string& name, const std::string& path);
	~TextureRes();

	const glm::ivec2& GetSize() const;
	void SetSize(const glm::ivec2& nsize);

	const std::string& GetPath() const;

	void Reload();
	GLTexture* GetTexture();

private:
	void LoadFile();

	glm::ivec2 m_size;
	std::string m_path;
	GLTexture* m_texture;
};

